import urllib2
from google.appengine.api import urlfetch
import re

def word(h):
    
    #res = urllib2.urlopen('http://'+h.di["url"]);
    #text = res.readline()
    result = urlfetch.fetch('http://'+h.di["url"])
    text = ''
    if result.status_code == 200:
        text = result.content
    word = h.di["word"]
    #if word in text:
    #   h.do["output"] = 'yes'
    #else:
    h.do["output"] = text
def view(h):
    pass
                                